package com.lambda;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class ListToString {

	public static void main(String[] args) {
		List<String> boxes = new ArrayList<>();
		for(int i=0;i<10;i++) {
			boxes.add(i+"");
		}
		String joinName = boxes.stream().collect(Collectors.joining(",", "", "")); 
		System.out.println(joinName);
	}
}
